#include <iostream>

using namespace std;

int main()
{
    float subtotal, taxRate, tax, due;
    cout << "Enter a subtotal: ";
    cin >> subtotal;
    cout << "Enter a sales tax rate percentage: ";
    cin >> taxRate;
    tax = subtotal * taxRate / 100;
    cout << "The sales tax is " << tax << endl;
    due = subtotal + tax;
    cout << "the total due is " << due << endl;

    return 0;
}
